import request from '../../utils/request.js'
const state = {
	categoryList:[]
}
const actions = {
	async getCategoryListData({commit}){
		try{
			const result = await request({url:'/getCateGoryData'})
			console.log('cc',result)
			commit('SET_CATEGORY_LIST_DATA',result)
		}catch(e){
			
		}
	}
}
const mutations = {
	SET_CATEGORY_LIST_DATA(state,categoryList){
		state.categoryList = categoryList
	}
}
const getters = {}

export default {
	namespaced:true, 
	state,
	actions,
	mutations,
	getters
}
